﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Psl.Applications;
using Psl.Chat;
using Psl.Remoting;
using System.Windows.Forms;

namespace Stl.Chat.Remoting.Plugin
{
    /// <summary>
    /// Germe d'installation du plugin ChatRemoting.
    /// </summary>
    [PslPluginInstaller]
    class ChatRemotingPlugin
    {
        /// <summary>
        /// Méthode d'installation du plugin.
        /// </summary>
        public static void Install()
        {
            if (ChatRegistry.ChatState.Usage == ChatUsage.Server)
            {
                // beurk
                new ServerCluster();
            }
            else if (ChatRegistry.ChatState.Usage == ChatUsage.Client)
            {
                // beurk
                new ClientCluster();
            }
        }
    }
}
